import request from '@/utils/request'

// 查询住院消费记录列表
export function listZyconsume(query) {
  return request({
    url: '/system/zyconsume/list',
    method: 'get',
    params: query
  })
}

// 查询住院消费记录详细
export function getZyconsume(zyid) {
  return request({
    url: '/system/zyconsume/' + zyid,
    method: 'get'
  })
}

// 新增住院消费记录
export function addZyconsume(data) {
  return request({
    url: '/system/zyconsume',
    method: 'post',
    data: data
  })
}

// 修改住院消费记录
export function updateZyconsume(data) {
  return request({
    url: '/system/zyconsume',
    method: 'put',
    data: data
  })
}

// 删除住院消费记录
export function delZyconsume(zyid) {
  return request({
    url: '/system/zyconsume/' + zyid,
    method: 'delete'
  })
}
